﻿@model ChampionFramework.Models.Grupo

@{
    ViewBag.Title = "AddTime";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>AddTime</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Grupo</legend>

        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.Nome)

        <div class="editor-label">
            @Html.LabelFor(model => model.Time, "Time")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TimeId", String.Empty)
            @Html.ValidationMessageFor(model => model.Time)
        </div>


        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to Group", "Details", new { id = Model.Id })
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
